<#include "header.htm"/>

<div id="tabs">
			<ul>
				<li><a href="${JForumContext.encodeURL("/admBase/login")}"><span>${I18n.getMessage("Admin.general")}</span></a></li>
	
			
				<li><a href="${contextPath}/adminGroups/list${extension}"><span>${I18n.getMessage("Admin.groups")}</span></a></li>
				<li><a href="${contextPath}/adminUsers/list${extension}"><span>${I18n.getMessage("Admin.users")}</span></a></li>
				<li><a href="${contextPath}/adminCategories/list${extension}"><span>${I18n.getMessage("Admin.categories")}</span></a></li>				
				<li><a href="${contextPath}/adminForums/list${extension}"><span>${I18n.getMessage("Admin.forums")}</span></a></li>
				<li><a href="${contextPath}/adminModeration/list${extension}"><span>${I18n.getMessage("Admin.approving")}</span></a></li>
			
				<li id="activetab"><a href="${contextPath}/adminRankings/list${extension}"><span>${I18n.getMessage("Admin.rankings")}</span></a></li>				
				<li><a href="${contextPath}/adminBanning/list${extension}"><span>${I18n.getMessage("Admin.banning")}</span></a></li>
				
				
				
				
				<li><a href="${contextPath}/adminConfig/list${extension}"><span>${I18n.getMessage("Admin.configurations")}</span></a></li>
			
				<li><a href="${contextPath}/adminSmilies/list${extension}"><span>${I18n.getMessage("Admin.smilies")}</span></a></li>
			
				<li><a href="${contextPath}/adminSearchStats/list${extension}"><span>${I18n.getMessage("Admin.search")}</span></a></li>
			
				<li><a href="${contextPath}/adminAttachments/configurations${extension}"><span>${I18n.getMessage("Admin.attachments")}</span></a></li>
			
				<li><a href="${contextPath}/adminCache/list${extension}"><span>${I18n.getMessage("Admin.cache")}</span></a></li>
			
			</ul>
</div>




<div id="acp">
		<div class="panel">
			<span class="corners-top"><span></span></span>
				<div id="content">
				    <div id="main">
<#setting number_format = "#"/>

<script type="text/javascript">
function turnSpecial() {
	if (document.getElementById("rank_special").checked) {
		var e = document.getElementById("rank_min");
		e.disabled = true;
		e.style.backgroundColor = "#cccccc";
		e.value = "";
	}
	else {
		var e = document.getElementById("rank_min");
		e.disabled = false;
		e.style.backgroundColor = "white";
	}
}
</script>


<form accept-charset="${encoding}" name="form" action="${contextPath}/jforum${extension}" method="post">
<input type="hidden" name="action" value="${action}" />
<input type="hidden" name="module" value="${moduleName}" />

<#if rank?exists>
	<input type="hidden" name="rank_id" value="${rank.id}" />
</#if>


<fieldset>
		<legend>${I18n.getMessage("Rank.Form.Title")}</legend>
	<dl>
		<dt><label>${I18n.getMessage("Rank.Form.RankName")}:</label></dt>
		<dd><input name="rank_title" type="text" id="rank_title" value="<#if rank?exists>${rank.title}</#if>" /></dd>
	</dl>
	
			<dl>
				<dt><label>${I18n.getMessage("Rank.Form.Special")}:</label></dt>
				<dd><input class="radio" name="rank_special" value="1" type="checkbox" onClick="turnSpecial();" id="rank_special"<#if rank?exists && rank.special>checked</#if> /></dd>
			</dl>
			<dl>
				<dt><label>${I18n.getMessage("Rank.Form.MinValue")}:</label></dt>
				<dd><input name="rank_min" type="text" id="rank_min" value="<#if rank?exists>${rank.min}</#if>" size="6" maxlength="5" /></dd>
			</dl>
		
		
		
	</fieldset>

<fieldset class="submit-buttons">
		<input class="button1" type="submit" value="${I18n.getMessage("Rank.Form.ClickToUpdate")}" name="submit">
</fieldset>



</form>

<#if rank?exists && rank.special>
<script type="text/javascript">
turnSpecial();
</script>
</#if>

</div>
</div>
	<span class="corners-bottom"><span></span></span>
</div>
</div>

<#include "bottom.htm"/>
